﻿#include <stdio.h>
#include <Windows.h>
#include "thuvien.h"
#include <conio.h>
#include <time.h>
#include <stdlib.h>
void win() //hàm hiển thị thông báo chiến thang
{
	system("cls");
	system("color 1b");
	char s[100]="Chuc mung ban!! Ban da chien thang!!!";
	for (int i=0;i<strlen(s);i++)
	{
		int begin=clock();
		while (clock()-begin<100);
		printf("%c",s[i]);
	}
	printf("\n\n\n");
	int begin=clock();
	while (clock()-begin<1000);
	printf("íííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí\n\n");
	printf(" ###       ###  ##  #####    ###  #####    ###  #######  ####### \n");
	printf(" ##         ##  ##  ##  ##    ##  ##  ##    ##  ##       ##    ##\n");
	printf("  ##   ##  ##   ##  ##   ##   ##  ##   ##   ##  ######   ##    ##\n");
	printf("  ##  #  # ##   ##  ##     ## ##  ##     ## ##  ##       ####### \n");
	printf("   ##     ##    ##  ###     ####  ###     ####  #######  ###   ###\n");
	printf("\n\n");
	printf("íííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí\n\n");
	while(clock()-begin<2000);
}
void lose() //hàm hiển thị thông báo thua cuộc
{
	system("color 1b");
	system("cls");
	char s[100]="Ban da thua cuoc, chuc ban may man lan sau";
	int n=strlen(s);
	for (int i=0;i<n;i++)
	{
		long begin=clock();
		printf("%c",s[i]);
		while(clock()-begin<100);
	}
	printf("\nAn phim bat ky de tro ve MENU");//Chen them bien de co dieu kien xuat ra menu

	getch();
	menu();
}
